package com.hntxk.cqzd.basicinfo.basepatient.entity;

import com.hntxk.core.framework.entity.BaseEntity;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.Id;
import java.util.Date;

@Getter
@Setter
public class BasePatient extends BaseEntity {

    @Id
    private Long patientId;
    //患者代号
    private String patientCode;

    //患者姓名
    private String patientName;

    //患者身份证号
    private String patientCardId;

    //患者性别
    private Character patientSex;

    //患者出生日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date patientBirthday;

    //患者民族ID
    private Long patientRaceId;

    //患者民族
    private String patientRace;

    //宗教信仰id
    private Long patientReligionId;
    private String patientReligion;


    //患者住址
    private String patientAddress;

    //患者年龄
    private int patientAge;

    //患者职业
    private Long patientOccupationId;
    private String patientOccupation;

    //患者学历
    private Long patientEduId;
    private String patientEdu;

    //患者电话
    private String patientTel;

    //配偶年龄
    private int spouseAge;

    //配偶职业
    private Long spouseOccupationId;
    private String spouseOccupation;

    //配偶学历
    private Long spouseEduId;
    private String spouseEdu;

    //配偶电话
    private String spouseTel;

    //备注
    private String patientRemark;

    //创建人id
    private Long createUserId;
    //创建人姓名
    private String createUserName;

    //创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    //修改人id
    private Long updateUserId;

    //修改人姓名
    private String updateUserName;

    //修改时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    private String patientPy;

}
